package com.turing.post.organization.util;

import java.util.Date;
import java.util.List;

import javax.ejb.Local;
import javax.ejb.Remote;

import com.turing.post.util.PCPSApplicationException;
import com.turing.post.util.PCPSWebInput;

/**
 * @author zxp
 * @Mar 15, 2013
 */
@Remote
@Local
public interface CreditAccDetailDao {

	/**
	 * 新增
	 * 
	 * @param cad
	 * @throws PCPSApplicationException
	 */
	public void insertCreditAccDetail(CreditAccDetail cad)
			throws PCPSApplicationException;

	/**
	 * 获取某发卡机构某日发放额度和激活额度合计
	 * 
	 * @param issueBranchNo
	 * @param tranDate
	 * @return
	 */
	public List<Object[]> getDeliverAndActivateByIssueBrchNo(
			String issueBranchNo, Date tranDate);

	public List<CreditAccDetail> getCreditAccDetailList(PCPSWebInput input,
			String branchNo, String startDate, String endDate, String TranType,
			Integer page);

	public Integer getCreditAccDetailTotal(PCPSWebInput input, String branchNo,
			String startDate, String endDate, String TranType);
}
